﻿<Canvas x:Class="Wpf3dCollaborative.MenuCam"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                      xmlns:Controls="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"
             mc:Ignorable="d" 
        Width="280" Height="196" Visibility="Visible" MouseDown="StackPanel_MouseDown" Margin="60,0,0,0">
 
        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Name="CameraName" FontSize="16"  FontWeight="Black" Foreground="White" Canvas.Left="8" Canvas.Top="0" Width="172">Camera Name</TextBlock>
        <Button Height="18" HorizontalAlignment="Right" Width="25" FontSize="16"  Click="Button_Click" Foreground="#FFEB0000" Template="{StaticResource BoutonRond}" Canvas.Left="253" Canvas.Top="2">X</Button>
 
 

 
 
        <TextBlock  Padding="0" Foreground="White" Margin="0,20,0,0" Canvas.Left="153" Canvas.Top="17">Camera Ip : </TextBlock>

        <RadioButton Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" GroupName="radioTypeCam" Name="checkcam" Unchecked="checkcam_Unchecked" Checked="checkcam_Checked" Padding="1,5,3,5" Margin="5,20,0,0" VerticalContentAlignment="Center" VerticalAlignment="Center" Canvas.Left="209" Canvas.Top="21"></RadioButton>
        <TextBlock Padding="0" Foreground="White" Margin="0,20,0,0" Canvas.Left="71" Canvas.Top="17">Webcam :</TextBlock>

    <RadioButton Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" GroupName="radioTypeCam"   Name="checkVideo" Checked="checkVideo_Checked" Unchecked="checkVideo_Unchecked"  VerticalContentAlignment="Center" VerticalAlignment="Center" Canvas.Left="46" Canvas.Top="41" ></RadioButton>
        <TextBlock   Foreground="White" Margin="0,20,0,0" Canvas.Left="8" Canvas.Top="17" >Video :</TextBlock>

    <RadioButton Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" GroupName="radioTypeCam"  Name="checkWebcam" VerticalContentAlignment="Center" VerticalAlignment="Center" Canvas.Left="128" Canvas.Top="41" Checked="RadioButton_Checked_1"></RadioButton>

   
         <TextBlock Padding="0" Foreground="White" Name="TxtCam" Canvas.Left="5" Canvas.Top="65">Caméra :</TextBlock>
        <ComboBox x:Name="videoCapDevices"  Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}"  DisplayMemberPath="Name" Text="Caméras disponibles" Canvas.Left="71" Canvas.Top="59" SelectionChanged="videoCapDevices_SelectionChanged">
          
        </ComboBox>

   
        <TextBlock Padding="0" Foreground="White" Canvas.Left="6" Canvas.Top="97">Résolution:</TextBlock>
        <ComboBox Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" x:Name="CamResolu"  Text="Caméras disponibles" Canvas.Left="71" Canvas.Top="94">
            <ComboBox.Items>
                <ComboBoxItem Content="1980x1090"></ComboBoxItem>
                <ComboBoxItem Content="1280x720"></ComboBoxItem>
                <ComboBoxItem Content="720x576"></ComboBoxItem>
                <ComboBoxItem IsSelected="True" Content="640x480"></ComboBoxItem>
                <ComboBoxItem Content="640x400"></ComboBoxItem>
                <ComboBoxItem Content="352x288"></ComboBoxItem>
                <ComboBoxItem Content="320x240"></ComboBoxItem>
                <ComboBoxItem Content="176x544"></ComboBoxItem>
            </ComboBox.Items>
        </ComboBox>
    
        <TextBlock Padding="0" Foreground="White" Canvas.Left="5" Canvas.Top="130">Mode 16/9:</TextBlock>
        <CheckBox Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" Name="Mode16"  Click="Mode16_Click"   Padding="0" Margin="5,0,0,0" VerticalContentAlignment="Center" VerticalAlignment="Center" Canvas.Left="66" Canvas.Top="133"></CheckBox>
   

  
        <TextBox Name="campIp"  Width="176"  Visibility="Visible"  FontSize="11" Canvas.Left="71" Canvas.Top="61" TextChanged="campIp_TextChanged" KeyUp="campIp_KeyUp">url de la caméra</TextBox>
                 

  

    <Button Name="BtnStop" Template="{StaticResource BoutonRond}" Click="BtnStop_Click" Height="25" Width="25" Canvas.Left="103" Canvas.Top="167" IsEnabled="True">■</Button>
    <Button Name="BtnPlay" Template="{StaticResource BoutonRond}" Click="BtnPlay_Click" Height="25" Width="25" Canvas.Left="128" Canvas.Top="167">||</Button>
    <Button ToolTip="Non Disponible" Name="BtnRec" TextBlock.Foreground="Azure" Template="{StaticResource BoutonRond}" Foreground="#FFE50000" Height="25" Width="25" Canvas.Left="153" Canvas.Top="167">●</Button>
    <Button Background="#FFA0A0A0" BorderThickness="0" BorderBrush="{x:Null}" Name="BtnInverser" FontWeight="Bold" FontSize="16" Content="®" Foreground="GreenYellow" Click="BtnInverser_Click" Canvas.Left="96" Canvas.Top="123" Width="27" />
    <Button Background="#FFA0A0A0" BorderBrush="{x:Null}" BorderThickness="0" Canvas.Left="247" Canvas.Top="61" Content="..." FontSize="12" FontWeight="Bold" Foreground="GreenYellow" Name="btnParcourir" Width="27" Click="btnParcourir_Click"  Height="21" />
    <Slider Canvas.Left="192" Canvas.Top="171" Height="21" Name="sliderVolume" Width="66" ToolTip="Volume de la caméra courante" Background="{x:Null}" Foreground="#FF6F5757" BorderBrush="#FFE5D3D3" Maximum="1" ValueChanged="sliderVolume_ValueChanged" Minimum="0" Template="{StaticResource HorizontalSlider}" />
    <Canvas.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFD71B00" Offset="0.012" />
            <GradientStop Color="Black" Offset="1" />
            <GradientStop Color="#FF585858" Offset="0.116" />
            <GradientStop Color="#FF727272" Offset="0.849" />
            <GradientStop Color="#FF454545" Offset="0.843" />
            <GradientStop Color="#FFA72818" Offset="0.11" />
        </LinearGradientBrush>
        </Canvas.Background>
</Canvas>